/*
 * @Author: 颜礼田 2564217790@qq.com
 * @Date: 2024-09-07 16:47:40
 * @LastEditors: MrDotYan 2564217790@qq.com
 * @LastEditTime: 2024-09-27 10:34:30
 * @FilePath: /webServer/src/schema/user/index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { BaseColumns } from "../base";
import { DepartmentSchema } from "../department";
import { RoleSchema } from "../role";
export interface UserSchema extends BaseColumns {
  // 姓名
  userName: string;

  // 身份证号
  idCardNo: string;

  // 手机号
  mobile: string;

  // 头像
  avatar?: string;

  // 密码
  password: string;

  role?: RoleSchema[];

  dept?: DepartmentSchema;

  email?: string;

  lastLogoutTime?: Date;
}
